package strategy.duck;

import strategy.flybehavior.BadFlyBehavior;
import strategy.quackbehavior.GeGeQuackBehavior;

/**
 * @author: zhouyang
 * @descrpition:
 * @time: 2019-04-28 18:43
 */
public class RedHeadDuck extends AbstractDuck {

    public RedHeadDuck(){
        this.flyBehavior = new BadFlyBehavior();
        this.quackBehavior = new GeGeQuackBehavior();
    }

    @Override
    public void display() {
        System.out.println("**RedHead**");
    }
}
